.no-border(...) {
	.nb() when (length(@arguments) = 0) {
		border: none;		
	}
	.nb();

	.loop(length(@arguments), @arguments);
    .loop(@i, @args) when (@i > 0) {
        .loop((@i - 1), @args);
        @side: extract(@args, @i);
        border-@{side}-style: none;
    }
}

.orb-container {
    overflow: hidden;
}

.orb {
    border-spacing: 0;
    border-collapse: separate;
    .no-border(right, top, left);
    padding: 0;

    td {
        .no-border(right, left, bottom);
        vertical-align: top;
    }

    & > tbody > tr > td {
        padding: 0 !important;
        border-top: none !important;
    }

    .inner-table {
        border-spacing: 0;
        border-collapse: separate;

        & > tbody > tr > td {
            padding: 14px 7px;
        }

        &.upper-buttons {
            width: 100%;
        }

        &.upper-buttons > tbody > tr > td {
            padding: 7px 4px;
        }
    }

    .inner-table-container {
        overflow-y: hidden;
        overflow-x: hidden;
        width: 100%;
        height: 100%;
    }

    /* available fields */    
    .av-flds {
        .no-border();
    }

    /* fields-group-caption */    
    .flds-grp-cap {
        width: 45px;
        white-space: nowrap;
        .no-border();
        div {
            float: left;
            font-weight: bold;
            margin-right: 9px;
            padding: 6px 0 0;
        }
    }
    .empty {
        white-space: nowrap;
        .no-border();
    }
    .header {

        & > div {
            min-height: 16px;
        }

        &-st, &-gt {
            font-weight: bold;
        }

        & > div > div {
            float: left;
            white-space: nowrap;
        }
    }
    .header-row {
        &.header-st-exp div {
            padding-left: 8px;
        }
        &.header-gt-exp {
            padding-left: 8px;
        }
    }
    .cell {
        & > div {
            min-height: 16px;
        }

        &-data {
            float: right;
            white-space: nowrap;
        }

        &-hidden {
            display: none;
        }
    }

    /* field-button */    
    .fld-btn {
        float: left;
        font-weight: normal;
        text-align: center;
        cursor: pointer;

        & .caption {
            padding-right: 3px;
        }

        & .filter {
            padding-left: 3px;
            vertical-align: 'top';
        }


        & .sort-indicator {
            height: 8px;
            margin-top: 5px;
            width: 10px;
        }

        & .sort-asc {
            background: url() no-repeat 0px 0px;
        }

        & .sort-desc {
            background: url() no-repeat 0px 0px;
        }
        
        /* filter-button */
        
        .fltr-btn {
            width: 11px;
            height: 11px;
        }
        .fltr-btn-active {
            background: url() no-repeat 0px 0px;
        }
        &:hover .fltr-btn {
            background: url() no-repeat 0px 0px;
        }
    }

    /* filter-container */    
    &.fltr-cntnr {
        position: fixed;
        background-color: white;
        font-size: 90%;
        width: 301px;
        height: 223px;
        padding: 3px;

        /* filter-value */        
        .fltr-val {
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
        }

        /* filter-checkbox */        
        .fltr-chkbox {
            width: 16px;
        }
    }

    /* filter-subcontainer */    
    .fltr-scntnr {
        width: 100%;
        table-layout: fixed;
        border-collapse: separate;
        border-spacing: 2px;

        /* search-box-column */        
        .srchbox-col {
            input {
                width: 100%;
                border: none;
            }
        }

        /* search-operator-column */        
        .srchop-col {
            width: 105px;
            vertical-align: middle;

            .orb-select {
                border: none;
                div {
                    text-align: left;
                }
            }
        }

        /* search-type-column */        
        .srchtyp-col {
            width: 18px;
            text-align: center;
            font-weight: bold;
            cursor: pointer;
        }

        .srchclear-btn {
            width: 14px;
            text-align: center;
            font-weight: bold;
            cursor: pointer;
            float: right;
        }

        .srchtyp-col-hidden {
            width: 0px;
            color: white;
            overflow: hidden;
            cursor: auto;
            border: none !important;
        }

        /* confirm-buttons-column */        
        .cnfrm-btn-col {
            padding-top: 5px;
        }
        .fltr-vals-col {
            vertical-align: top;
            padding-bottom: 3px;
        }
        .fltr-vals-tbl {
            table-layout: fixed;
            width: 100%;
            height: 154px;
            display: block;
            overflow-x: hidden;
            overflow-y: auto;
        }
        .resize-col {
            vertical-align: bottom;
            div {
                float: right;
                width: 16px;
                height: 16px;
                margin-bottom: 0;
                background: url() no-repeat 0px 0px;
                cursor: se-resize;
            }
        }
    }

    /* header-value */    
    .hdr-val {
        .no-border();
        div {
            white-space: nowrap;
        }
    }
    div.hdr-val {
        float: left;
    }

    /* drop-target */    
    .drp-trgt {
        float: left;
        width: 100%;
        margin-right: 17px;
        padding: 1px 0;
        min-height: 24px;
    }

    .drp-trgt-empty {
        width: 51px;
    }

    /* drop-indicator */    
    .drp-indic {
        float: left;
        width: 2px;
        margin-top: 0px;
        margin-left: 3px;
        margin-right: 3px;
        &-first {
            margin-left: 0;
        }
        &-last {
            margin-right: 0;
        }
    }
}

/* orb-button */    
.orb-btn {
    font-weight: normal;
    text-align: center;
    margin-right: 3px;
    cursor: pointer;
}

/* toggle-button */    
.orb-tgl-btn {
    .no-border();
    div {
        float: left;
        width: 16px;
        height: 16px;
        margin-right: 7px;
        border-radius: 11px;
        cursor: pointer;
    }
    &-right {
        background: url() no-repeat 0 0;
    }
    &-down {
        background: url() no-repeat 0 0;
    }
}

.orb-scrollthumb {
    position: absolute;
    cursor: pointer;
}

.orb-h-scrollbar {
    position: relative;
    height: 16px;
    .orb-scrollthumb {
        margin: 3px 0;
        height: 10px;
        top: 0;
    }
}

.orb-v-scrollbar {
    position: relative;
    width: 16px;
    .orb-scrollthumb {
        margin: 0 3px;
        width: 10px;
        left: 0;
    }
}

.orb-overlay {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    width: auto;
    margin-left: 0;
    background-color: rgba(128, 128, 128, 0.71);
    &-hidden {
        display: none;
    }
    &-visible {
        display: block;
    }
}

.orb-dialog {
    position: absolute;
    z-index: 5;
    &-body {
        box-sizing: border-box;
        width: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }
    &-header {
        font-weight: bold;
        font-size: 140%;
        line-height: 31px;
        height: 35px;
        div.button-close {
            float: right;
            width: 16px;
            height: 16px;
            background: url() no-repeat 0 0;
            border-radius: 11px;
            cursor: pointer;
        }
    }
}

.orb-table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    td, th {
        padding: 1px 3px;
    }
}

.orb-toolbar {
    .no-border();
    height: 34px;
    padding: 3px;
    margin-bottom: 17px;
    width: 100%;
    
    .theme-item {
        float: left;
        width: 16px;
        height: 16px;
        margin-right: 3px; 
        border: 1px dashed lightgray;
    }
}

.orb-tlbr-btn {
    float: left;
    width: 26px;
    height: 26px;
    margin-right: 3px;
    cursor: pointer;

    &.export-xls {
        background: url() no-repeat 0 0;
    }

    &.expand-all {        
        background: url() no-repeat 0 0;
    }

    &.collapse-all {        
        background: url() no-repeat 0 0;
    }

    &.grndtotal-visible {
        background: url() no-repeat 0 0;
    }

    &.grndtotal-hidden {
        background: url() no-repeat 0 0;
    }

    &.subtotals-visible {
        background: url() no-repeat 0 0;
    }

    &.subtotals-hidden {
        background: url() no-repeat 0 0;
    }

    .orb-select div {
      padding: 0 10px;
    }

    .orb-select .orb-tgl-btn-down {
      padding: 0 16px 0 4px;
    }
}

.orb-tlbr-lbl {
    float: left;
    height: 26px;
    line-height: 26px;
    margin-right: 3px;
    font-weight: bold;
}

.orb-tlbr-sep {
    float: left;
    height: 26px;
    width: 1px;
    margin-right: 5px;
}

.orb-select {
    & > div {
        text-align: center;
        cursor: pointer;
        font-style: italic;
        background-position: right;
    }
    ul {
        position: fixed;
        display: none;
        list-style: none;
        padding: 0 3px;
        margin: 0;
        cursor: pointer;
        background-color: white;
        z-index: 101;
    }
    ul li {
        clear: both;
        float: left;
        width: 100%;
        padding: 3px;
    }
}
